From: Stefan Monnier Date: Wed, 21 Apr 2004 20:48:47 +0000 (+0000) Subject: (python-maybe-jython): Don't assume point-min==1. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~23022 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=85900cdcfc80a815f94ffc1cc5645bce8c7553ff;p=emacs.git (python-maybe-jython): Don't assume point-min==1. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7a7e62d06ee..a85cd2296ae 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1415,7 +1415,7 @@ The criterion is either a match for `jython-mode' via (while (re-search-forward (rx (and line-start (or "import" "from") (1+ space) (group (1+ (not (any " \t\n.")))))) - 10000 ; Probably not worth customizing. + (+ (point-min) 10000) ; Probably not worth customizing. t) (if (member (match-string 1) python-jython-packages) (throw 'done t))))